package com.example.demo.web.rest.controller;

import com.example.demo.client.evt.sysbasequery.NameEnEvt;
import com.example.demo.client.vm.sysbasequery.HelpCatalogVm;
import com.ffcs.oss.param.out.ServiceResp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 帮助管理
 * @Author zhengmf
 * @Date 2019/1/9  15:44
 */
@ApiModel(description ="帮助接口")
@RestController
@RequestMapping(value = "/api/help")
public class HelpController extends BaseController{

    @ApiOperation("获取帮助目录树(选中菜单关联的目录)")
    @PostMapping("/getHelpCatalogTree")
    public ServiceResp<List<HelpCatalogVm>> getHelpCatalogTree(@RequestBody @Validated NameEnEvt evt){
        return baseQueryClient.getHelpCatalogTree(evt);
    }

}
